/**************************************************************
 *   File:	Functions.h
 * Author:	Andrew Thorpe
 *  Brief:	Generally usefull maths functions
 **************************************************************/
#ifndef _FOSSIL_FUNCTIONS_H
#define _FOSSIL_FUNCTIONS_H

namespace Fossil
{
	inline float Cap(float val, float min, float max) 
	{ 
		if(val < min) 
			return min; 

		if(val > max)
			return max;

		return val;
	}
};

#endif//_FOSSIL_FUNCTIONS_H
